package com.wly.utils;

import java.util.Comparator;

import com.wly.datapool.heropool.hero.BaseHero;
import com.wly.define.TalentDefine;

public class HeroSpeedComparator implements Comparator
{
	@Override
	public int compare(Object arg0, Object arg1)
	{
		BaseHero hero1,hero2;
		int difference ;
		hero1 = (BaseHero)arg0;
		hero2 = (BaseHero)(arg1);
		
		return hero1.getTalentByType(TalentDefine.SPEED_TALENT) - hero2.getTalentByType(TalentDefine.SPEED_TALENT);
	}
}
